/*
 * @Description: 
 * @Author: Sun
 * @Date: 2019-08-11 15:34:44
 * @LastEditors: Sun
 * @LastEditTime: 2019-08-11 15:47:53
 */
import React, { Component } from 'react';

class List extends Component {
  constructor(props) {
    super(props);
    this.state = {}
  }
  render() {
    return (<h2>List Page->{this.state.id}</h2>);
  }
  //-关键代码---------start
  componentDidMount() {
    // console.log(this.props.match.params.id)
    let tempId = this.props.match.params.id
    this.setState({ id: tempId })
  }
  //-关键艾玛---------end
}

export default List;